<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>弹性布局元素在另一根轴上的对齐方式</title>
		<style> 
			*{
				margin: 0;
				padding: 0;
			}
			#f1{
				display:flex; 
				flex-flow: row wrap;
				justify-content: space-around;
				align-items: stretch;
			}
			#f1>div{
			
				/* width: 100px; */
				min-width: 100px;
				line-height: 100px;
				background-color: blueviolet;
				color: white;
			 	margin: 5px;
				font-size: 40px;
				text-align: center; 
				
			}
			#f1 div:nth-child(3){
				 
				background-color: aqua;
			}
			#f1 div:nth-child(4){
				
				background-color: aqua;
			}
		</style>
	</head>
	<body>
		<div id="f1">
			<div>1</div>
			<div style="height: 399px;line-height: 399px;">2</div> 
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div style="height: 600px;">8</div>
			<div>nihao,woshi zhazhahui</div>
			<div>10</div>
			<div>11</div>
			<div>12</div>
			<div>13</div>
			<div>14</div>
			<div>15</div>
			<div>16</div>
			<div>17</div>
			<div>18</div>
		</div>
	</body>
</html>